package org.dochandler.esfinge.guardian.populator;

import java.util.Calendar;

import org.dochandler.service.domain.constants.Constants;
import org.esfinge.guardian.annotation.config.PopulatorClass;
import org.esfinge.guardian.context.AuthorizationContext;
import org.esfinge.guardian.populator.Populator;

@PopulatorClass(CurrentDateTimePopulator.class)
public class CurrentDateTimePopulator implements Populator {

	@Override
	public void populate(AuthorizationContext context) {
		context.getEnvironment().put(Constants.CURRENT_TIME.val(), Calendar.getInstance() );
	}
}
